package com.cy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cy.entity.JobCard;
import com.cy.entity.JobCardExample;
import com.cy.mapper.JobCardMapper;

@Service
public class JobCardService {
	@Autowired
	private JobCardMapper mapper;
	public List<JobCard> findAllJobCards(){
		return mapper.selectByExample(null);
	}
	
	public JobCard findJobCardById(String id) {
		return mapper.selectByPrimaryKey(id);
	}
	
	public void updateJobCard(JobCard jc) {
		
		mapper.updateByPrimaryKeySelective(jc);
	}
}
